﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Forum/Views/Shared/Main.Master"
    Inherits="System.Web.Mvc.ViewPage<Jzy.UI.Web.Areas.Forum.Models.TopicListModel>" %>

<%@ Import Namespace="Jzy.UI.Web.Areas.Forum.BaseCode" %>
<%@ Import Namespace="Jzy.Model.Forum" %>
<%@ Import Namespace="Jzy.UI.Web.BaseCode" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
    <%=ForumStyle.List%>
    <%=ForumStyle.Pager %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div class="nav">
        <a href="#" class="img">
            <img src="<%=ForumPath.Image %>pt_icn.png" /></a><a href="#" class="space">广场</a><a
                href="#" class="space">银光中国</a>
        <div class="but">
            <a href="#">搜索本版</a><input type="text" class="text" /><input type="button" class="button"
                value="搜索" /></div>
        <div class="clear">
        </div>
    </div>
    <div class="List_top">
        <div class="top">
            <div class="left">
                <a href="#">银光茶馆</a>今日: <span>51</span>|主题: <span>377</span></div>
            <div class="right">
                <a href="#" class="bb">收藏本版</a><a href="#" class="dy">订阅</a></div>
        </div>
        <div class="clear">
        </div>
        <div class="bot">
            版主: <a href="javascript:;"><%=Model.BoardInfo.Moderator %></a></div>
    </div>
    <div class="List_page">
        <div class="left">
            <input type="button" /></div>  
             <%=HtmlPager.Pager(Model.Pager.PageIndex, Model.Pager.PageSize, Model.Pager.RecordCount, Model.UrlPrefix, true)%>

        
    </div>
    <div class="List_main">
        <div class="List_main_tit">
            <span class="left">筛选: <a href="#'">全部主题</a> <a href="#'">全部时间</a> |排序: <a href="#'">
                最后发表</a> |<a href="#'">精华</a> </span><span class="mid">
                    <label for="xch">
                        <input type="checkbox" class="check" id="xch" /><a href="#">新窗</a></label>作者</span><span
                            class="middle">回复/查看 </span><span class="right">最后发表</span></div>
        <div class="clear">
        </div>
        <div class="List_main_con">
            <ul>
                <%foreach (ForumTopicInfo info in this.Model.TopList)
                  {%>
                <li><span class="left"><a href='<%= ForumPath.VirtualRoot + "topic/Detail/" + info.ID %>'
                    title="全局置顶主题 - 新窗口打开" target="_blank">
                    <%if (info.TopLevel == (int)ForumTopicTopLevel.Board)
                      { %>
                    <img src="<%=ForumPath.Image %>pin_1.gif" alt="本版置顶" />
                    <%}
                      else
                      { %>
                    <img src="<%=ForumPath.Image %>pin_3.gif" alt="全局置顶" />
                    <%} %>
                </a><a href='<%= ForumPath.VirtualRoot + "topic/detail/" + info.ID %>' class="que">
                    <%=info.Name %>
                </a></span><span class="mid"><a href="javascript:;" class="black">
                    <%=info.MemberName %></a><%=info.InputTime.ToString("yyyy-MM-dd") %></span> <span
                        class="middle"><a href="<%= ForumPath.VirtualRoot + "topic/detail/" + info.ID %>">
                            <%=info.ReplyCount %></a><%=info.BrowseCount %></span> <span class="right"><a href="javascript:;"
                                class="black">
                                <%=info.LastPosterName %></a><a href="javascript:;"><%=info.LastPostTime %></a></span>
                </li>
                <%} %>
                <li class="zt">版块主题</li>
                <%foreach (ForumTopicInfo info in this.Model.NormalList)
                  { %>
                <li><span class="left">
                    <img src="<%=ForumPath.Image %>folder_new.gif" />
                    <%if (info.TypeID != 0)
                      { %>
                    <em>[<a href="javascript:;"><%=info.TypeName %></a>]</em>
                    <%} %>
                    <a href="<%= ForumPath.VirtualRoot + "topic/Detail/" + info.ID %>">
                        <%=info.Name %>
                    </a></span><span class="mid"><a href="javascript:;" class="black">
                        <%=info.MemberName %></a><%=info.InputTime.ToString("yyyy-MM-dd") %></span>
                    <span class="middle"><a href="<%= ForumPath.VirtualRoot + "topic/detail/" + info.ID %>">
                        <%=info.ReplyCount %></a><%=info.BrowseCount %></span> <span class="right"><a href="javascript:;"
                            class="black">
                            <%=info.LastPosterName %></a><a href="javascript:;"><%=info.LastPostTime %></a></span>
                </li>
                <%} %>
            </ul>
        </div>
        <div class="clear">
        </div>
    </div>
    <div class="List_page">
        <div class="left">
            <input type="button" /></div>
       <%=HtmlPager.Pager(Model.Pager.PageIndex, Model.Pager.PageSize, Model.Pager.RecordCount,Model.UrlPrefix,true)%>

        <div class="clear">
        </div>
    </div>
</asp:Content>
